﻿@{
    ViewBag.Title = "AddAddress";
    Layout = null;
}

<!doctype html>
<html ng-app="app">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>新增地址</title>
    <link href="~/Content/Style/gobal.css" rel="stylesheet" type="text/css">
    <link href="~/Content/Style/add_address.css" rel="stylesheet" type="text/css">
    <script src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script src="~/Content/Script/angular.min.js"></script>
    <script src="~/Scripts/PageJs/Main.js"></script>
    <script src="~/Scripts/PageJs/Information.js"></script>
</head>

<body ng-controller="UpdateAddressController">
    <form ng-submit="updateContact(addressInfo)" id="addfrmRegist" class="form-horizontal">
        <div class="pay_away">
            <div class="cont">
                <div class="server">
                    <div class="cont">
                        <div class="title">
                            <p class="name1">姓名</p>
                            <span class="pice1">
                                <input class="input_style" name="" type="text" placeholder="输入姓名" ng-model="addressInfo.ContactName">
                            </span>
                            <div class="clearfix"></div>
                        </div>
                        <div class="title">
                            <p class="name1">电话</p>
                            <span class="pice1">
                                <input class="input_style" name="" type="text" placeholder="输入电话" ng-model="addressInfo.ContactCall">
                            </span>
                            <div class="clearfix"></div>
                        </div>
                        @*<div class="title1">
                            <p class="name1">范围</p>
                            <span class="pice1">
                                <select class="form-control" ng-model="addressInfo.MerAddId" ng-change="changeadd(addressInfo.MerAddId)" ng-options="node.AddId as node.AddName for node in MerAddId" class="text" style="margin-top: 10px; line-height: 40px; height: 30px; -webkit-appearance: none; appearance: none; border: none; font-size: 14px; padding: 0px 10px; display: block; width: 100%; -webkit-box-sizing: border-box; box-sizing: border-box; background-color: #FFFFFF; color: #ababab; border-radius: 4px;"></select>
                            </span>
                            <div class="clearfix"></div>
                        </div>*@
                        <div class="title1">
                            <p class="name1">范围</p>
                            <span class="pice1">
                                <select class="form-control" ng-model="addressInfo.MerAddId" ng-change="changeadd(addressInfo.MerAddId)" ng-options="node.MerSendAddId as node.AddName for node in MerAddId" class="text" style="margin-top: 10px; line-height: 40px; height: 30px; -webkit-appearance: none; appearance: none; border: none; font-size: 14px; padding: 0px 10px; display: block; width: 100%; -webkit-box-sizing: border-box; box-sizing: border-box; background-color: #FFFFFF; color: #ababab; border-radius: 4px;"></select>
                            </span>
                            <div class="clearfix"></div>
                        </div>
                        <div class="title1">
                            <p class="name1">地址</p>
                            <span class="pice1">
                                <input class="input_style" name="" type="text" placeholder="输入地址" ng-model="addressInfo.ContactAddress">
                            </span>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div>
            <input name="" class="tijiao" type="submit" id="btnAddSubmit" ng-disabled="myForm.$invalid" value="保存">
        </div>
        <div class="form-group range">
            <div class="col-sm-2">
            </div>
            <div id="range">
                该地址可送餐的商户有：
                <ul>
                    <span ng-repeat="item in MerForAdd"><a style="color: red">{{item.MerName}}</a>
                    </span>
                </ul>
            </div>

        </div>
    </form>
</body>
</html>
